<?
include_once('conn.php');
include_once('include/func.php');
include("user_check.php") ;

///
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><? echo SITE_HEADER; ?></title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 
<link href="css/admin.css" rel="stylesheet" type="text/css" />
	<!-- jquery packed -->
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    <script type="text/javascript" src="js/dtree.js"></script>
    <script type="text/javascript" src="js/ajaxcart.js"></script>
	<!-- tableRowCheckboxToggle -->
    <script type="text/javascript"> 
    function fade(b) 
{ 
    $('<div id="add" class="quick-alert" style="position:absolute;"><? echo SITE_ADSTATUSOK;?></div>').insertAfter($("#example")).animate({opacity: 1.0}, 2000).fadeOut("slow",function(){ 
   $(this).remove(); 
}); 
} 
</script> 
<script>
function close_facebox(){
	alert('<? echo CART_ADDED; ?>');
 $('#facebox').fadeOut(function() {
      $('#facebox .content').removeClass().addClass('content')
    })
	}

</script>

<link href="js/facefiles/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<script src="js/facefiles/facebox.js" type="text/javascript"></script>

<script type="text/javascript">
    jQuery(document).ready(function($) {
      $('a[rel*=facebox]').facebox() 
    })
	////////

</script>
        <script type="text/javascript">
            function myfun()
            {
                var cha1;
                cha1=document.myform.amount.value;
                if(cha1<1)
                {
                    alert("<? echo PAY_PAYPAL_AMOUNNT_ERROR;?>");
                    return false;
                }
			}
        </script>
    
<script language="Javascript"><!--       
//屏蔽鼠标右键、Ctrl+N、Shift+F10、F11、F5刷新、退格键       
//Author: meizz(梅花雨) 2002-6-18       
function document.oncontextmenu(){event.returnValue=false;}//屏蔽鼠标右键       
function window.onhelp(){return false} //屏蔽F1帮助       
function document.onkeydown()       
{       
if ((window.event.altKey)&&       
((window.event.keyCode==37)|| //屏蔽 Alt+ 方向键 ←       
(window.event.keyCode==39))) //屏蔽 Alt+ 方向键 →       
{       
alert("不准你使用ALT+方向键前进或后退网页！");       
event.returnValue=false;       
}       
/* 注：这还不是真正地屏蔽 Alt+ 方向键，   
因为 Alt+ 方向键弹出警告框时，按住 Alt 键不放，   
用鼠标点掉警告框，这种屏蔽方法就失效了。以后若   
有哪位高手有真正屏蔽 Alt 键的方法，请告知。*/       
if ((event.keyCode==8) || //屏蔽退格删除键       
(event.keyCode==116)|| //屏蔽 F5 刷新键       
(event.ctrlKey && event.keyCode==82)){ //Ctrl + R       
event.keyCode=0;       
event.returnValue=false;       
}       
if (event.keyCode==122){event.keyCode=0;event.returnValue=false;} //屏蔽F11       
if (event.ctrlKey && event.keyCode==78) event.returnValue=false; //屏蔽 Ctrl+n       
if (event.shiftKey && event.keyCode==121)event.returnValue=false; //屏蔽 shift+F10       
if (window.event.srcElement.tagName == "A" && window.event.shiftKey)       
window.event.returnValue = false; //屏蔽 shift 加鼠标左键新开一网页       
if ((window.event.altKey)&&(window.event.keyCode==115)) //屏蔽Alt+F4       
{       
window.showModelessDialog("about:blank","","dialogWidth:1px;dialogheight:1px");       
return false;       
}       
}       

</script> 
<script type="text/javascript"> 
	  var scrwid=screen.width-21;        
        var scrhei=screen.height+500; 
$(document).ready(function(){
	$(".menu").click(function(){
		$(".mark").css({
	"width": ""+scrwid+"",
	"height": ""+scrhei+"",
            "opacity": "0.70",
           " filter": "alpha(opacity=70)"
		   });
		   
		   $(".sider").css({
			   "display": "block",
   "opacity": "0.9",
           " filter": "alpha(opacity=90)"
});
		});


	

	});
	
</script>
<style>
.mark{
	top:0px; left:0px; bottom:100%; right:100px; background:#000; position:absolute; opacity:0; filter:aplha(opacity=0); }
.sider{
	display: none;
   position:absolute;
   top:50%;
   left:50%;
   margin-top:-100px;
   margin-left:-200px;
   width:400px;
   height:200px;
   border:5px solid  #FFF;
	top:50%;
	background:#000;
	color:#FFF; text-align:center;
	line-height:200px;
}
.sider a{
	margin:20px; padding:20px; background-color:#fff; background:#fff; border: #F90 1px solid; }
</style>
</head>
<body <? echo isset($_GET[ok])?'onload="fade();"':''; ?>><div class="mark"> </div><div class="sider"><a href="user_payment.php"><? echo PAY_COMPLETED;?></a> <a href="user_payment.php"><? echo PAY_FAILURE;?></a></div>
<div id="wrap">
<div id="main" class="clearfix">
<div id="side">
  </div>
  <div id="head"><? include_once('user_head.php');?></div><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="13%" valign="top"><div id="left"> <?
  include_once('user_menu.php');
  ?></div></td>
    <td width="87%" align="left" valign="top"><div id="example"> </div><img src="images/ttfjpg.php?t=<? echo PAY_BANK_TRANSFER;?>&amp;bg=titlebg2.jpg&amp;z=18&amp;x=5&amp;y=22&amp;r=0&amp;b=0&amp;g=0"  /><br />
<img src="images/ttfjpg.php?t=<? echo MEMBER_DEPOSIT;?>：<? 	echo unit(mamber($con1=$checkmember[0][2],$con2=7));?>&amp;bg=titlebg2.jpg&amp;z=14&amp;x=5&amp;y=22&amp;r=96&amp;b=96&amp;g=96"  />
<? echo parameters(18);?><br />


<?

eval("\$shop = ".parameters(1));

function payment($paymenttype){
	global $db; global $tablepre;
				$is_module = $db->select("SELECT active FROM `".tablepre."module` where `name` = '$paymenttype'");
	  if($is_module[0][0]==1){include('module/paypalapi/paypal.html');}else{
		}
	}
	foreach($shop as $v){
		payment($v);
		}

?>
</td>
  </tr>
</table>
 
  
  </div>
  </div>

<div id="footer">
<?
include_once('fooder.php');
?>
</div>
</BODY>
</HTML>